<?php

$attributes = array('id' => 'login_form');
echo form_open('login/userValidation', $attributes); ?>
<table width="100%">
	<tr>
        <td class="logo" colspan="6"></td>
    </tr>
    <tr>
    	<td class="menuActual">Login</td>
    </tr>
    <tr>
    	<td>
        	<table>
                <tr>
                    <td class="descripcionForm"><?php	echo form_label("User Name: ");?></td>
                    <td class="descripcionForm">
                    <?php
                    $attributes = array('id' => 'username', 'size' => '20','name' => 'username', 'maxlength' => '50', 
                                        'value' => set_value('username'), 'placeholder' => 'Email');
                    echo form_input($attributes);
                    ?>
                    </td>
                </tr>
                
                <tr>
                    <td class="descripcionForm"><?php echo form_label("Password: ");?></td>
                    <td class="descripcionForm">
                    <?php
                    $attributes = array('id' => 'password', 'size' => '20','name' => 'password', 'maxlength' => '50');
                    echo form_password($attributes);
                    ?>
                    </td>
                </tr>
                <tr>
                    <td class="descripcionForm" colspan="2"><?php echo validation_errors(); ?></td>
                    <?php if(isset($result)) echo ('<span class="msg_error">' . $result . '</span>'); ?>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td class="footer">
            <input type="submit" value="Enter" class="footer_button" />
        </td>            
    </tr>    
</table>
<?php echo form_close();?>